package com.liuceng.peatio.utils

import com.liuceng.BaseSpec
import com.liuceng.peatio.model.FakeData

/**
 * Created by liyuhang on 2016-22-4.
 */
class FakeUtilsSpec extends BaseSpec {
    BigDecimal cost = new BigDecimal(100)
    int viewNum = 1
    int clickNum = 1
    int adgroupNum = 1

    FakeData fd = new FakeData(cost, viewNum, clickNum)

    def "广告组个数为1的时候不需要分配"() {
        List<FakeData> fds = FakeUtils.processData(cost, viewNum, clickNum, adgroupNum)

        expect:
        fd.equals(fds.get(0))

    }

}